<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/template/common/header.jsp"%>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);"
		action="${base }/alliance!list.action" method="post" rel="pagerForm"
		id="productListForm">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>搜索关键词<input type="text" name="alliance.title"
						value="${artile.title }" alt="请输入关键词 " size="30" /></td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">检索</button>
							</div>
						</div></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${base }/alliance!add.action"
				target="dialog" rel="alliance-add" mask="true"><span>添加联盟</span></a></li>
			<li class="line">line</li>
			<li><a class="add"
				href="${base }/alliance!taskAdd.action?alliance.id={alliance}"
				rel="alliance-task" target="ajaxToDo"><span>更新数据</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="80">名称</th>
				<th width="20">图标</th>
				<th width="40">域名</th>
				<th width="40">根URL</th>
				<th width="20">创建时间</th>
				<th width="80">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${alliances}" var="alliance">
				<tr target="alliance" rel="${alliance.id}">
					<td>${alliance.title }</td>
					<td><img alt="" src="${resourceRootUrl}${alliance.logo }"
						width="103" height="21"></td>
					<td>${alliance.host}</td>
					<td>${alliance.url}</td>
					<td><fmt:formatDate value="${alliance.createDate }"
							pattern="yyyy-MM-dd HH:mm:ss" /></td>
					<td><a title="${alliance.title }" rel="alliance_edit"
						target="dialog"
						href="${base }/alliance!edit.action?alliance.id=${alliance.id}"
						class="btnEdit" mask="true">编辑</a><a title="确定要删除该文章?"
						target="ajaxTodo"
						href="${base }/alliance!delete.action?alliance.id=${alliance.id}"
						class="btnDel">删除</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<cy:pagination pageBean="${pager }"
	pageUrl="${base }/alliance!list.action">
	<%@include file="/WEB-INF/template/common/pagination.jsp"%>
</cy:pagination>